package com.crm.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class JsonMessage implements Serializable {
   // private int status;
    private int code;
    private String message;
    private Object data;
    private boolean success;



    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public JsonMessage() {
       // this.status=200;
        this.message ="";
        this.code=200;
        this.success=true;

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public JsonMessage(String error, int code, boolean success)
    {
        //this.status=status;
        this.message =error;
        this.code=code;
        this.success=success;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
